<%-- 
    Document   : home
eated on : Jun 12, 2014, 7:14:09 AM
    Author     : Welcomes
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Trang chủ</title>
        <script src="js/script.js" type="text/javascript"></script>
        <link href="css/bootstrap.css" rel="stylesheet" type="text/css"/>
        <link href="css/style.css" rel="stylesheet" type="text/css"/>
        <script src="js/script.js" type="text/javascript"></script>
    </head>

    <body>
        <!--Header-->
        <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a href="index">
                        <b style="color: white;text-align: center">
                            WEB TRA CỨU THÔNG TIN
                        </b>
                        <br>
                        <b style="color: white;font-size:130%;text-align: center">
                            ÔN THI TỐT NGHIỆP
                        </b>
                    </a>
                </div>
                <div class="collapse navbar-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li class="active"><a href="index">Trang chủ</a></li>
                            <c:if test="${current_user != null}">
                            <li><a href="resource?action=load">Tài nguyên</a></li>
                            <c:if test="${current_user.role.roleName =='Giáo viên'}">   
                                <li><a href="postmanage?action=load">Quản trị</a></li>
                                <li><a href="post?action=new-topic">Tạo mới</a></li>
                            </c:if>
                            </c:if>

                        <c:if test="${current_user == null}">
                            <li><a href="authen?action=login-logout">Đăng nhập|Đăng ký</a></li>
                            </c:if>
                            <c:if test="${current_user != null}">
                            <li><a href="authen?action=logout">Thoát</a></li>
                            </c:if>
                    </ul>
                </div><!--/.nav-collapse -->
            </div>
        </div>

        <!--Content Seacher-->
        <c:if test="${p == 'login' || p == null}">
            <%@include file="module/seach-cb.jsp" %>
        </c:if>
        <c:if test="${p == 'search-cb'}">
            <%@include file="module/seach-cb.jsp" %>
            <div class="container">
                <%@include file="module/result-search2.jsp" %>
            </div>
        </c:if>
        <c:if test="${p == 'seach-nc'}">
            <%@include file="module/seach-nc.jsp" %>
            <div class="container">
                <%@include file="module/result-search2.jsp" %>
            </div>  
        </c:if>
        <c:if test="${p == 'view-post'}">
            <%@include file="module/seach-cb.jsp" %>
            <div class="container">
                <%@include file="module/view-topic2.jsp" %>
            </div>
        </c:if>
        <!--Content Information-->
        <div class="container">
            <div class="row">
                <c:if test="${p == 'new-topic' }">
                    <%@include file="module/new-topic.jsp" %>
                </c:if>     
                <c:if test="${p == 'login-logout' }">
                    <%@include file="module/login-logout.jsp" %>
                </c:if>     
                <c:if test="${p == 'attach' }">
                    <%@include file="module/attach.jsp" %>
                </c:if>     
                <c:if test="${p == 'resource' }">
                    <%@include file="module/resurce.jsp" %>
                </c:if>     
                <c:if test="${p == 'login' || p == null}">
                    <%@include file="module/result-search2.jsp" %>
                </c:if>
            </div>
        </div>

        <div id="about">
            <p>(c) 2014 Trần Thị Kim Hậu – Khoa học máy tính K25</p>
            <p>Website thuộc đề tài bảo vệ luận văn thạc sĩ “Ứng dụng semantic web xây dựng hệ thống trợ giúp học tập cho học sinh THPT ôn thi tốt nghiệp môn toán”</p>
        </div>
        <script src="js/jquery-1.11.1.min.js" type="text/javascript"></script>
        <script src="js/bootstrap.js" type="text/javascript"></script>
    </body>
</html>
